#include <iostream>
#include "gui/Tabs.h"
#include "gui/SubWindow/DrawingAreaPlusPlus.h"
#include "gui/SubWindow/Workspace.h"
#include "utils/Settings.h"
#include "gui/BarraDeHerramientas.h"
#include "gui/ButtonCreator.h"

BarraDeHerramientas::BarraDeHerramientas(ButtonCreator* button_creator): Gtk::VButtonBox(Gtk::BUTTONBOX_START){
    this->button_creator = button_creator;
}
BarraDeHerramientas::~BarraDeHerramientas() {

    delete button_creator;

    for ( unsigned i=0 ; i< m_images.size(); i++)
        delete m_images[i];

    for ( unsigned i=0 ; i< m_buttons.size(); i++)
        delete m_buttons[i];


}


void BarraDeHerramientas::setTabs( Tabs* tabs){
	m_tabs = tabs;
	button_creator->inicializar(tabs,m_buttons,m_images);
	for ( unsigned i=0 ; i< m_buttons.size(); i++)
	    pack_start(*m_buttons[i], false, false, 0);
}

